import { Rhino3dmLoader } from "../../lib/loaders/3DMLoader";

const loaderFor3DM = function () {
  const loader = new Rhino3dmLoader();
  loader.setLibraryPath('https://cdn.jsdelivr.net/npm/rhino3dm@0.15.0-beta/');
  loader.load(
    this.modelPath,
    (object) => this.publicLoadCallback(object),
    this.loadProgress.bind(this)
  );
};

export default loaderFor3DM;
